package org.xx.armory.ofs.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.xx.armory.commons.ForLogging;

import java.util.Set;

import static java.util.Collections.singletonList;
import static java.util.Set.copyOf;

@Configuration
public class SecurityConfig {
    @ForLogging
    private final Logger logger = LoggerFactory.getLogger(SecurityConfig.class);

    @Bean(name = "securityExcludedResources")
    public Set<String> excludeResources() {
        return copyOf(singletonList("/**"));
    }
}
